import sqlalchemy
from sqlalchemy.orm import Mapped,mapped_column
from settings.publicvar import Base

class CreateUser(Base):
    __tablename__ = 'users'

    id:Mapped[int] = mapped_column(primary_key=True)
    username:Mapped[str] = mapped_column(sqlalchemy.String(20))
    password:Mapped[str] = mapped_column(sqlalchemy.String(128))

    def __repr__(self):
        return f'username:{self.username}'
